package com.zzyl.mapper;

import com.zzyl.entity.RoleResource;
import com.zzyl.vo.RoleVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Set;

/**
* @author 29400
* @description 针对表【sys_role_resource(角色资源关联表)】的数据库操作Mapper
* @createDate 2024-05-17 11:37:39
* @Entity com.zzyl.entity1.RoleResource
*/
@Mapper
public interface RoleResourceMapper {

    //删除角色资源关联
    void deleteRoleResource(Long roleIds);
    //查询角色资源关联
    Set<String> findCheckedResources(Long roleId);
    //更新角色资源关联
    void updateRoleResourceId(Long id);
    //批量插入
    void batchInsert(List<RoleResource> roleResourceList);

    //分页通过ID获得角色id
    Set<String> getRoleIdByUserId(Long id);
}
